package chenji.dailykit.ItemEditor.operationnode;

import java.util.ArrayList;

import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
/**
 * @author ChenJi Copyright (c) 2016 ChenJi. All rights reserved.
 */
public class SimpleItemStack extends ItemStack {
	public SimpleItemStack(Material m, String[] lore, String Subject) {
		super(m);
		ArrayList<String> lr = new ArrayList<String>();
		for (final String line : lore) {
			lr.add(line);
		}
		ItemMeta meta = this.getItemMeta();

		meta.setDisplayName(Subject);
		meta.setLore(lr);
		this.setItemMeta(meta);

	}
}
